#ifndef FRIDGE_H
#define FRIDGE_H
#include <QString>
#include <QDateTime>
#include <QDebug>
class Fridge
{
public:
    Fridge();
    long id;
    QString name;
    QDateTime createTime;
    QDateTime activeTime;
    int guarantee;
    long userId;
    QString activeCode;

    friend QDebug operator << (QDebug os, Fridge fridge){
            os << "(" << fridge.id << ", "
                  << fridge.name << ", "
                     << fridge.createTime << ", "
                        << fridge.activeTime << ", "
                           << fridge.guarantee << ", "
                              << fridge.userId << ", "
                                << fridge.activeCode << ")";
            return os;
        }
};

#endif // FRIDGE_H
